<?php
namespace app\api\model;
use think\Model;

class Account extends Model
{
    protected $hidden = ['password'];
	protected $autoWriteTimestamp = true;
	protected $updateTime = false;
    protected $pk = 'id';
    
    // 账号连接加盟信息
    public function falliance() {
        return $this->hasOne('\app\api\model\Alliance','id','alliance_id')->bind(
            ['name', 'location', 'status']);
	}
}
